Let all active regions set the primary selection.
authorChong Yidong <cyd@stupidchicken.com>
Mon, 16 Aug 2010 02:33:17 +0000 (22:33 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Mon, 16 Aug 2010 02:33:17 +0000 (22:33 -0400)
commit5a27abb9ddbbe7fe7352c086f9b38632364a39f7
tree3c4c5b4494a397a9de43ab50cb6299d679f159d0
parent90a7f4dd5f3c152bc6c7661680b0909d2e88db78
Let all active regions set the primary selection.
This includes both temporarily active regions (mouse drag and
shift-select) and those made with C-SPC and cursor motion.

* lisp/cus-start.el: Change defcustom for select-active-regions.

* lisp/simple.el (deactivate-mark): If select-active-regions is `only',
only set selection for temporarily active regions.

* src/insdel.c (prepare_to_modify_buffer): Handle `only' value of
select-active-regions.

* src/keyboard.c (command_loop_1): Avoid setting selection twice,
since it's done in deactivate-mark as well.
(Vselect_active_regions): Replace `lazy' value with `only',
meaning to only set PRIMARY for temporarily active regions.
etc/NEWS
lisp/ChangeLog
lisp/cus-start.el
lisp/simple.el
src/ChangeLog
src/insdel.c
src/keyboard.c